package org.itboys.mobile.entity.mysql.pay;


import org.itboys.mongodb.entity.BaseMySqlEntity;

/**
 * 包名：com.hz.sunday.tianjie.entity.mysql.product
 * 作者 : 江雄
 * Email: empty90911@126.com
 * 时间：2016年3月10日 下午2:52:46 
 * 描述:圣代-支付_参数配置_实体
 *
 */

public class SundayPayConfig extends BaseMySqlEntity{

	private String name;//账户所有人

	/**支付宝**/
	private String alipayAppId;//支付宝appID，RSA2加密使用
	private String alipayAppPrivateKey;//商户私钥
	private String alipayAppPublicKey;//商户公钥
	private String alipayPublicKey;//支付宝公钥
	/**微信**/
	private String weChatAppId;//微信AppId
	private String weChatAppSecret;//微信AppSecret
	private String weChatApi;//微信API,既支付密钥key
	private String weChatMchId;//微信商户ID
	
	private Integer type;//1支付宝2微信（开放平台如APP）3微信(服务号/网页)

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlipayAppId() {
		return alipayAppId;
	}

	public void setAlipayAppId(String alipayAppId) {
		this.alipayAppId = alipayAppId;
	}

	public String getAlipayAppPrivateKey() {
		return alipayAppPrivateKey;
	}

	public void setAlipayAppPrivateKey(String alipayAppPrivateKey) {
		this.alipayAppPrivateKey = alipayAppPrivateKey;
	}

	public String getAlipayAppPublicKey() {
		return alipayAppPublicKey;
	}

	public void setAlipayAppPublicKey(String alipayAppPublicKey) {
		this.alipayAppPublicKey = alipayAppPublicKey;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public void setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
	}

	public String getWeChatAppId() {
		return weChatAppId;
	}

	public void setWeChatAppId(String weChatAppId) {
		this.weChatAppId = weChatAppId;
	}

	public String getWeChatAppSecret() {
		return weChatAppSecret;
	}

	public void setWeChatAppSecret(String weChatAppSecret) {
		this.weChatAppSecret = weChatAppSecret;
	}

	public String getWeChatApi() {
		return weChatApi;
	}

	public void setWeChatApi(String weChatApi) {
		this.weChatApi = weChatApi;
	}

	public String getWeChatMchId() {
		return weChatMchId;
	}

	public void setWeChatMchId(String weChatMchId) {
		this.weChatMchId = weChatMchId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTypeStr() {
		String typeStr="";
		if(type==null)return typeStr;

		switch (type) {
			case 1:
				typeStr="支付宝。";
				break;
			case 2:
				typeStr="微信（开放平台）";
				break;
			case 3:
				typeStr="微信（服务号）";
				break;
			default:
				break;
		}
		return typeStr;
	}
}
